import { createStore, applyMiddleware } from 'redux'
import reducer from './reducer'
// 中间件
import logger from 'redux-logger'

import thunk from 'redux-thunk'

const store = createStore(reducer, applyMiddleware(logger, thunk)/*应用中间件*/)

export default store